package com.stockz.equity.charting.display.screen;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stockz.equity.scanner.screen.ConsolidationScreen;
import com.stockz.equity.scanner.screen.Screen;
import com.stockz.equity.scanner.screen.configuration.ConsolidationScreenConfiguration;

@Component
public class ConsolidationScreenDisplay extends
		AbstractDisplayableScreenConfiguration {

	@Autowired
	private ConsolidationScreen consolidationScreen;
	
	@SuppressWarnings("unchecked")
	@Override
	public Screen<ConsolidationScreenConfiguration> getScreen() {
		return consolidationScreen;
	}

	@Override
	public String getDescription() {
		return getShortName()+", "+
		consolidationScreen.getConfiguration().getSmaSpan()+", "+
		consolidationScreen.getConfiguration().getBoundSpan()+", "+
		consolidationScreen.getConfiguration().getBoundPercentage()+"%";
	}

	@Override
	public String getFullName() {
		return "Consolidation";
	}

	@Override
	public String getShortName() {
		return "CON";
	}

}
